| InstallPC 0.10
|
RMEnsure UtilityModule  3.50 Error 0 !PC will only work on an Acorn RISC PC; there's no point in installing it on anything else.

If "<Wimp$ScrapDir>"="" Then Error 0 Can't find your !Scrap folder -- has the machine been properly booted?
If "<Boot$Dir>"="" Then Error 0 Can't find your !Boot folder -- has the machine been properly booted?

Set InstallPC$Dir <Obey$Dir>
Set InstallPCRes$Path <Obey$Dir>.Resources.
Set InstallPCApp$Path <Wimp$ScrapDir>.

Wimpslot -min 32k -max 32k
Unset Diva$Active
Run InstallPCRes:DivaActive
If "<Diva$Active>"="Yes" Then Error 0 Running the installer while !PC is still running is a very bad idea.  Please quit !PC and try again.
Unset ReadWrite
Run InstallPCRes:TestZip
IF "<ReadWrite>"="No" Then Error 0 Please move !InstallPC out of an archive before attempting to run it!

Unset InstallPC$ToolboxMod
RMEnsure Toolbox  0.00 RMLoad System:Modules.Toolbox.Toolbox
RMEnsure Window   0.00 RMLoad System:Modules.Toolbox.Window

RMEnsure Toolbox  1.36 Set InstallPC$ToolboxMod Toolbox 1.36
RMEnsure Window   1.43 Set InstallPC$ToolboxMod Window 1.43

If "<InstallPC$ToolboxMod>"<>"" Then Error 0 Some or all of your Toolbox modules are outdated; please run the 'InstToolbox' script to rectify this situation.

If "<Wimp$ScrapDir>"="" Then Error 0 I can't find your !Scrap folder; has the machine been booted properly?
Wimpslot -min 256k -max 256k

Run <InstallPC$Dir>.!Runimage 2>null:$
|Run <InstallPC$Dir>.!Runimage 2><InstallPC$Dir>.^.stderr

